package org.example.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("stock-service")
public interface StockFeign {
    @PostMapping("/stock/deduct")
    void deduct(@RequestParam String commodityCode, @RequestParam int count);
}